#if !defined(AFX_GXQUOTEEVENTSINK_H__936337C8_1934_4FE4_8C98_AC06B3073B50__INCLUDED_)
#define AFX_GXQUOTEEVENTSINK_H__936337C8_1934_4FE4_8C98_AC06B3073B50__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// GxQuoteEventSink.h : header file
//

#include "p2.h"

class CSymbolManager;
/////////////////////////////////////////////////////////////////////////////
// GxQuoteEventSink command target

class GxQuoteEventSink : public CCmdTarget
{
	DECLARE_DYNCREATE(GxQuoteEventSink)

	GxQuoteEventSink();           // protected constructor used by dynamic creation

private:
	CSymbolManager* m_SymbolMgr;
	
public:
	DWORD m_Cookie;
	IGxQuote m_lpQuote;
	
	CSymbolManager* SymbolMgr() const { return m_SymbolMgr; }
	void SymbolMgr(CSymbolManager* val) { m_SymbolMgr = val; }
	
	virtual ~GxQuoteEventSink();
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(GxQuoteEventSink)
	public:
	virtual void OnFinalRelease();
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(GxQuoteEventSink)
		// NOTE - the ClassWizard will add and remove member functions here.
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
	// Generated OLE dispatch map functions
	//{{AFX_DISPATCH(GxQuoteEventSink)
	afx_msg void OnQuoteChanged(LPDISPATCH a_GxSymbol, LPDISPATCH a_GxQuote);
	//}}AFX_DISPATCH
	DECLARE_DISPATCH_MAP()
	DECLARE_INTERFACE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_GXQUOTEEVENTSINK_H__936337C8_1934_4FE4_8C98_AC06B3073B50__INCLUDED_)
